package com.tengju.bff.interfaces.covercharge.mapper;

import com.tengju.bff.interfaces.covercharge.entity.dto.RegisteredInfo;
import com.tengju.bff.interfaces.covercharge.entity.dto.ServiceLetaxRegisteredDto;
import com.tengju.bff.interfaces.covercharge.entity.po.ServiceLetaxRegistered;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tengju.bff.interfaces.covercharge.entity.vo.LeTaxRegisteredAndReturnResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 乐税个体户注册表 Mapper 接口
 * </p>
 *
 * @author zhaoyi
 * @since 2020-02-24
 */
@Component
public interface ServiceLetaxRegisteredMapper extends BaseMapper<ServiceLetaxRegistered> {

    List<RegisteredInfo> queryRegisteredInfoList(@Param("idCode") Integer idCode, @Param("accountId") Integer accountId);

    List<RegisteredInfo> queryRegisteredInfoListNoAccountId(@Param("idCode") Integer idCode);

    List<ServiceLetaxRegisteredDto> getNumberCommon(@Param("idCodeList")List<ServiceLetaxRegisteredDto> idCodeList);

    void updateStatusToEnd(@Param("idCode") Integer idCode,  @Param("platformCode") String platformCode);

    LeTaxRegisteredAndReturnResult leTaxRegisteredAndReturnInfo(@Param("idCode") Integer idCode);

    LeTaxRegisteredAndReturnResult leTaxRegisteredAndReturnInfoById(@Param("id") Integer id);

}
